def fibonacci(n):
    a, b = 0, 1
    for _ in range(n):
        a, b = b, a + b
    return a

# Get the 9th Fibonacci number (index starts from 0, so we use 8)
ninth_fibonacci = fibonacci(9)
print(ninth_fibonacci)
